package cn.stylefeng.guns.sys.modular.system.entity.Enum;

import lombok.Getter;


/**
 * 员工职位，枚举类
 */
@Getter
public enum EmployeePositionEnum {

    POSITIONALL(0,"迎宾,前厅员工,后厨员工,钟点工,兼职"),
    POSITION1(1,"店长"),
    POSITION2(2,"店助"),
    POSITION3(3,"迎宾"),
    POSITION4(4,"前厅员工"),
    POSITION5(5,"后厨员工"),
    POSITION6(6,"钟点工"),
    POSITION7(7,"兼职"),
    POSITION8(8,"小时工"),
    POSITION20(20,"营运经理"),
    POSITION21(21,"督导"),
    POSITION22(22,"大店长"),
    POSITION23(23,"店长");

    EmployeePositionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;

    private String msg;

    public static EmployeePositionEnum getByMsg(String value){
        for(EmployeePositionEnum attendAuditStatusEnum : values()){
            if (attendAuditStatusEnum.getMsg().equals(value)) {
                return attendAuditStatusEnum;
            }
        }
        return null;
    }

    public static EmployeePositionEnum getByCode(Integer value){
        for(EmployeePositionEnum attendAuditStatusEnum : values()){
            if (attendAuditStatusEnum.getCode().equals(value)) {
                return attendAuditStatusEnum;
            }
        }
        return null;
    }

}
